# ----------------------------------------------------------------------
# CORS-enabled images (@crossorigin)
# ----------------------------------------------------------------------
# Send CORS headers if browsers request them; enabled by default for images.
# developer.mozilla.org/en/CORS_Enabled_Image
# blog.chromium.org/2011/07/using-cross-domain-images-in-webgl-and.html
# hacks.mozilla.org/2011/11/using-cors-to-load-webgl-textures-from-cross-domain-images/
# wiki.mozilla.org/Security/Reviews/crossoriginAttribute
RewriteEngine on

RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]

<IfModule mod_setenvif.c>
  <IfModule mod_headers.c>
    # mod_headers, y u no match by Content-Type?!
    <FilesMatch "\.(gif|png|jpe?g|svg|svgz|ico|webp)$">
      SetEnvIf Origin ":" IS_CORS
      Header set Access-Control-Allow-Origin "*" env=IS_CORS
    </FilesMatch>
  </IfModule>
</IfModule>
# ----------------------------------------------------------------------
# Webfont access
# ----------------------------------------------------------------------
# Allow access from all domains for webfonts.
# Alternatively you could only whitelist your
# subdomains like "subdomain.example.com".
<IfModule mod_headers.c>
  <FilesMatch "\.(ttf|ttc|otf|eot|woff|woff2|font.css|css|js)$">
    Header set Access-Control-Allow-Origin "0"
  </FilesMatch>
</IfModule>

RewriteCond %{HTTP_REFERER} !^http://documents.jagsolutions.bi/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://documents.jagsolutions.bi$      [NC]
RewriteCond %{HTTP_REFERER} !^http://hotels.jagsolutions.bi/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://hotels.jagsolutions.bi$      [NC]
RewriteCond %{HTTP_REFERER} !^http://jagsolutions.bi/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://jagsolutions.bi$      [NC]
RewriteCond %{HTTP_REFERER} !^http://pharmacy.jagsolutions.bi/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://pharmacy.jagsolutions.bi$      [NC]
RewriteCond %{HTTP_REFERER} !^http://shop.jagsolutions.bi/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://shop.jagsolutions.bi$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.documents.jagsolutions.bi/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.documents.jagsolutions.bi$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.hotels.jagsolutions.bi/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.hotels.jagsolutions.bi$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.jagsolutions.bi/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.jagsolutions.bi$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.pharmacy.jagsolutions.bi/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.pharmacy.jagsolutions.bi$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.shop.jagsolutions.bi/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.shop.jagsolutions.bi$      [NC]
RewriteCond %{HTTP_REFERER} !^https://documents.jagsolutions.bi/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^https://documents.jagsolutions.bi$      [NC]
RewriteCond %{HTTP_REFERER} !^https://hotels.jagsolutions.bi/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^https://hotels.jagsolutions.bi$      [NC]
RewriteCond %{HTTP_REFERER} !^https://jagsolutions.bi/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^https://jagsolutions.bi$      [NC]
RewriteCond %{HTTP_REFERER} !^https://pharmacy.jagsolutions.bi/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^https://pharmacy.jagsolutions.bi$      [NC]
RewriteCond %{HTTP_REFERER} !^https://shop.jagsolutions.bi/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^https://shop.jagsolutions.bi$      [NC]
RewriteCond %{HTTP_REFERER} !^https://www.documents.jagsolutions.bi/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^https://www.documents.jagsolutions.bi$      [NC]
RewriteCond %{HTTP_REFERER} !^https://www.hotels.jagsolutions.bi/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^https://www.hotels.jagsolutions.bi$      [NC]
RewriteCond %{HTTP_REFERER} !^https://www.jagsolutions.bi/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^https://www.jagsolutions.bi$      [NC]
RewriteCond %{HTTP_REFERER} !^https://www.pharmacy.jagsolutions.bi/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^https://www.pharmacy.jagsolutions.bi$      [NC]
RewriteCond %{HTTP_REFERER} !^https://www.shop.jagsolutions.bi/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^https://www.shop.jagsolutions.bi$      [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “alt-php72” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-alt-php72 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
